package com.codeduck.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户题目标记表
 * </p>
 *
 * @author ddh
 * @since 2025-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("code_duck_user_question_mark")
@ApiModel(value="CodeDuckUserQuestionMark对象", description="用户题目标记表")
public class CodeDuckUserQuestionMark implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标记ID，主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID，关联 code_duck_user 表")
    private String userId;

    @ApiModelProperty(value = "题目ID，关联 code_duck_question 表")
    private String questionId;

    @ApiModelProperty(value = "标记类型，如 已掌握、晚点再刷、未掌握")
    private String markType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
